[PATCH] MySQL: Free the results when QSqlQuery::finished() is called
authorDaniel Vrátil <dvratil@kde.org>
Sat, 1 Dec 2018 16:56:41 +0000 (17:56 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 30 Jan 2020 21:03:38 +0000 (21:03 +0000)
commit81e78a55631da105991fdbfc7657385aa1d4ddaf
tree6651e5039d5ad0741e66f57836d59d7d70667cc3
parenta272a8dc0995014deb546951c243c0d306f6350a
[PATCH] MySQL: Free the results when QSqlQuery::finished() is called

Calling mysql_stmt_free_result() frees the results of the last
executed query while keeping the prepared statement valid. This
allows one to keep around prepared QSqlQueries without the overhead
of keeping all the results in memory.

Change-Id: I4589e90857cc4e9a6f9612799bfca967a67e2ab2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Gbp-Pq: Name mysql_free_results_when_qsqlquery_finished_is_called.patch
src/plugins/sqldrivers/mysql/qsql_mysql.cpp